<h2>确认单号: <?php echo $model->confirm_no; ?> </h2>

<div class="actionBar1">
<?php 
	$butt='返回';
	if(isset($_GET['ok'])){
		if($_GET['ok']==0){//确认成功 只能关闭 并且刷新派车单查询修改页
			$mess='确认成功！';
			$butt='关闭';
			$search_app_id=Yii::app()->params['search_app_id'];
			$update_app_id=Yii::app()->params['update_app_id'];
			$cs=Yii::app()->clientScript;
			$cs->registerScript('appointment_to_confirm_ok',<<<END
			var app_iframe=[$(".$search_app_id",parent.document),$(".$update_app_id",parent.document)];
			for(var i=0;i<app_iframe.length;i++){
				if(app_iframe[i].length>0){
					if(app_iframe[i].contents().find(".return_btn:first").length>0)
						 app_iframe[i].contents().find(".return_btn:first")[0].click();
					else
						 app_iframe[i].contents()[0].location.reload();
				}
			} 
END
			);
		}
		else
			$mess='更新成功！'; 
		unset($_GET['ok']);
	}
	$act=isset($_GET['ret'])?$_GET['ret']:$ret;//判断show以后返回路径
	unset($_GET['ret']);unset($_GET['id']);
	$url=array($act)+$_GET;
?>
<?php $this->widget('application.extensions.print.printWidget',array('printedElement'=>'.dataGrid,H2'));?>&nbsp;&nbsp;&nbsp;&nbsp;
[<?php echo CHtml::link($butt,$url); ?>]
</div>

<table class="dataGrid" width="100%">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('loading_status')); ?>
</th>
    <td width="80"><?php echo CHtml::encode($model->getLoadingStatusName()); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('truck_plate_no')); ?>
</th>
    <td width="70"><?php echo CHtml::encode($model->truck_plate_no); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('board_plate_no')); ?>
</th>
    <td width="80" ><?php echo CHtml::encode($model->board_plate_no); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('type')); ?>
</th>
    <td width="60"><?php echo CHtml::encode($model->type); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver1_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver1_name); ?>
</td>

	<th class="label" ><?php echo CHtml::encode($model->getAttributeLabel('driver1_mobile')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver1_mobile); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver2_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver2_name); ?>
</td>

	<th class="label" ><?php echo CHtml::encode($model->getAttributeLabel('driver2_mobile')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver2_mobile); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('appointment_time')); ?>
</th>
    <td  colspan="7"><?php echo CHtml::encode($model->appointment_time); ?>
</td>
</tr>
<?php if($model->loading_status==0):?><!-- 重驶 -->
<?php foreach($goods_models as $n=>$goods):?>
<tr>
<td colspan="8">货物信息<?php echo $n+1;?></td>
</tr>
<tr>
	<th class="label" ><?php echo CHtml::encode($goods->getAttributeLabel('consignor_name')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($goods->consignor_name); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('loading_place')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($goods->loading_place); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('consignee_name')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($goods->consignee_name); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('pod_place')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($goods->pod_place); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('actual_consignee')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($goods->actual_consignee); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('shortage')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->getShortageName()); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('arrival_state')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->getArrivalStateName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('consignor_link_name')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->consignor_link_name); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('consignor_link_tel')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->consignor_link_tel); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('consignee_link_name')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->consignee_link_name); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('consignee_link_tel')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->consignee_link_tel); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('goods_name')); ?>
</th>
    <td><?php echo CHtml::encode($goods->goods_name); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('pack_type')); ?>
</th>
    <td><?php echo CHtml::encode($goods->getPackTypeName()); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('unit_name')); ?>
</th>
    <td><?php echo CHtml::encode($goods->getUnitName()); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('amount')); ?>
</th>
    <td><?php echo CHtml::encode($goods->amount); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('time_costing')); ?>
</th>
    <td><?php echo CHtml::encode($goods->getTimeCostingName()); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('lift_kind')); ?>
</th>
    <td><?php echo CHtml::encode($goods->getLiftKindName()); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('origin')); ?>
</th>
    <td><?php echo CHtml::encode($goods->origin); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('destination')); ?>
</th>
    <td><?php echo CHtml::encode($goods->destination); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('path_mileage')); ?>
</th>
    <td><?php echo CHtml::encode($goods->path_mileage); ?>
</td>

	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('fuel_name')); ?>
</th>
    <td><?php echo CHtml::encode($goods->getFuelName()); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('driving_circuit')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->getDrivingCircuitName()); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('special_state')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->getShortageName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('demand_deliver_time')); ?>
</th>
    <td><?php echo CHtml::encode($goods->demand_deliver_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('demand_deliver_time')); ?>
</th>
    <td><?php echo CHtml::encode($goods->demand_deliver_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('actual_arrival_time')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->actual_arrival_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($goods->getAttributeLabel('special_state_detail')); ?>
</th>
    <td ><?php echo CHtml::encode($goods->special_state_detail); ?>
</td>
</tr>
<?php endforeach;?>
<?php foreach($deadhead_models as $n=>$deadhead):?>
<tr>
<td colspan="8">提货行驶信息<?php echo $n+1;?></td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('origin')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->origin); ?>
</td>

	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('destination')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->destination); ?>
</td>

	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('mileage')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->mileage); ?>
</td>

	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('fuel_name')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->getFuelName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('gas_fee')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->gas_fee); ?>
</td>

	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('bridge_charge')); ?>
</th>
    <td ><?php echo CHtml::encode($deadhead->bridge_charge); ?>
</td>
	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('deadhead_reason')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->deadhead_reason); ?>
</td>
	<th class="label"><?php echo CHtml::encode($deadhead->getAttributeLabel('driving_circuit')); ?>
</th>
    <td><?php echo CHtml::encode($deadhead->getDrivingCircuitName()); ?>
</td>
</tr>
<?php endforeach;?>
<tr>
<td colspan="8">行驶信息汇总</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('front_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->front_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('empty_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->empty_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('light_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->light_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('heavy_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->heavy_mileage); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_front_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_front_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_empty_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_empty_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_light_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_light_mileage); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_heavy_mileage')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_heavy_mileage); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('front_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->front_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('empty_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->empty_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('light_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->light_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('heavy_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->heavy_fuel); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_front_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_front_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_empty_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_empty_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_light_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_light_fuel); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('actual_heavy_fuel')); ?>
</th>
    <td ><?php echo CHtml::encode($model->actual_heavy_fuel); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('mileage')); ?>
</th>
    <td colspan="7"><?php echo CHtml::encode($model->mileage); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('front_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->front_cost); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('empty_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->empty_cost); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('light_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->light_cost); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('heavy_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->heavy_cost); ?>
</td>
</tr>
<tr>
<td colspan="8">收入费用信息</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('amount_kind')); ?>
</th>
    <td><?php echo CHtml::encode($model->getAmountKindName()); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('advance_payment')); ?>
</th>
    <td><?php echo CHtml::encode($model->advance_payment); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('balance')); ?>
</th>
    <td ><?php echo CHtml::encode($model->balance); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('total_amount')); ?>
</th>
    <td ><?php echo CHtml::encode($model->total_amount); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('special_reasons')); ?>
</th>
    <td colspan="7"><?php echo CHtml::encode($model->special_reasons); ?>
</td>
</tr>
<?php foreach($gas_models as $n=>$gas):?>
<tr>
<th class="label">油费
</th>
<td>油费<?php echo $n+1;?></td>
<th class="label"><?php echo CHtml::encode($gas->getAttributeLabel('unit_price')); ?>
</th>
    <td ><?php echo CHtml::encode($gas->unit_price); ?>
</td>
<th class="label"><?php echo CHtml::encode($gas->getAttributeLabel('amount')); ?>
</th>
    <td ><?php echo CHtml::encode($gas->amount); ?>
</td>
<th class="label"><?php echo CHtml::encode($gas->getAttributeLabel('cost')); ?>
</th>
    <td ><?php echo CHtml::encode($gas->cost); ?>
</td>
</tr>
<?php endforeach;?>
<?php
$extra_sum=count($extra_models);
if($extra_sum>0):
foreach($extra_models as $n=>$extra):
if($n%2==0&&$n<$extra_sum) echo '<tr>';
?>
<th class="label"> <?php echo CHtml::encode($extra->getAttributeLabel('item')); ?>
</th>
<td><?php echo CHtml::encode($extra->getItemName()); ?></td>
<th class="label"><?php echo CHtml::encode($extra->getAttributeLabel('cost')); ?>
</th>
<td><?php echo CHtml::encode($extra->cost); ?></td>
<?php 
if($n==($extra_sum-1)&&$n%2==0) echo '<td colspan="4"></td>'; 
if($n%2==1||$n==($extra_sum-1)) echo '</tr>';
endforeach;
?>
<?php endif;?>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('bridge_charge')); ?>
</th>
    <td><?php echo CHtml::encode($model->bridge_charge); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('amerce_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->amerce_cost); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_salary')); ?>
</th>
    <td ><?php echo CHtml::encode($model->driver_salary); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('damage_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->damage_cost); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('charge_off_sum')); ?>
</th>
    <td><?php echo CHtml::encode($model->charge_off_sum); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('total_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->total_cost); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('total_profit')); ?>
</th>
    <td colspan="3"><?php echo CHtml::encode($model->total_profit); ?>
</td>
</tr>
<tr>
<td colspan="8">其他信息</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_prepaid')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver_prepaid); ?>
</td>
	<th><?php echo CHtml::encode($model->getAttributeLabel('prepaid_place')); ?>
</th>
    <td><?php echo CHtml::encode($model->prepaid_place); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_repayment')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver_repayment); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('repayment_place')); ?>
</th>
    <td><?php echo CHtml::encode($model->repayment_place); ?>
</td>

</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_user); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_user); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark')); ?>
</th>
    <td  colspan="7"><?php echo CHtml::encode($model->remark); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('return_paper')); ?>
</th>
    <td  colspan="7"><?php echo CHtml::encode($model->getReturnPaperName()); ?>
</td>
</tr>
<?php else:?><!-- 指定空驶 -->
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('origin')); ?>
</th>
    <td><?php echo CHtml::encode($model->origin); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('destination')); ?>
</th>
    <td><?php echo CHtml::encode($model->destination); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('mileage')); ?>
</th>
    <td><?php echo CHtml::encode($model->mileage); ?>
</td>

	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('fuel_name')); ?>
</th>
    <td><?php echo CHtml::encode($model->getFuelName()); ?>
</td>
</tr>
<tr>
<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driving_circuit')); ?>
</th>
    <td><?php echo CHtml::encode($model->getDrivingCircuitName()); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('gas_amount')); ?>
</th>
    <td><?php echo CHtml::encode($model->gas_amount); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('gas_fee')); ?>
</th>
    <td><?php echo CHtml::encode($model->gas_fee); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('bridge_charge')); ?>
</th>
    <td><?php echo CHtml::encode($model->bridge_charge); ?>
</td>    
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('extra_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->extra_cost); ?>
</td>
<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_salary')); ?>
</th>
    <td ><?php echo CHtml::encode($model->driver_salary); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('total_cost')); ?>
</th>
    <td ><?php echo CHtml::encode($model->total_cost); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_prepaid')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver_prepaid); ?>
</td>
	<th><?php echo CHtml::encode($model->getAttributeLabel('prepaid_place')); ?>
</th>
    <td><?php echo CHtml::encode($model->prepaid_place); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('driver_repayment')); ?>
</th>
    <td><?php echo CHtml::encode($model->driver_repayment); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('repayment_place')); ?>
</th>
    <td><?php echo CHtml::encode($model->repayment_place); ?>
</td>

</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_user); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_time); ?>
</td>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('update_user')); ?>
</th>
    <td><?php echo CHtml::encode($model->update_user); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark')); ?>
</th>
    <td  colspan="7"><?php echo CHtml::encode($model->remark); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('return_paper')); ?>
</th>
    <td  colspan="7"><?php echo CHtml::encode($model->getReturnPaperName()); ?>
</td>
</tr>
<?php endif;?>
</table>
<?php if(isset($mess)) echo "<script>alert('$mess');</script>";?>
<div class="actionBar1">
<?php $this->widget('application.extensions.print.printWidget',array('printedElement'=>'.dataGrid,H2'));?>&nbsp;&nbsp;&nbsp;&nbsp;
[<?php echo CHtml::link($butt,$url); ?>]
</div>